<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
    <script>
        let arra=Array.of(10,"特仑苏","君乐宝",30,true,null)
        console.log(arra);

        //伪数组实例
        let obj={
            0:"刘能",
            1:"谢广坤",
            length:2
        }
        console.log(Array.from(obj));
        let objArr=Array.from(obj);
        console.log(obj instanceof Array);     //false
        console.log(objArr instanceof Array);  //true

        let arr=[
            {
                name:"安陵容",
                age:18,
                gender:"woman"
            },
            {
                name:"沈眉庄",
                age:19,
                gender:"woman"
            },
            {
                name:"嬛嬛",
                age:18,
                gender:"woman"
            }
        ];
        let arr1=[5,6,4,8,7,9]
        console.log(arr1.findIndex(function(item,idx,arr){
            return item>8;
        }));
        console.log(arr1.find(function(item,idx,arr){
            return item>7;
        }));

        //includes
        let arr8=Array.of(10,"王老七","谢广坤");
        console.log(arr8.includes("王老七"));  //true
        console.log(arr8.includes("刘能"));    //false
    </script>
</body>
</html>